package work.parabola.assets.common;

/**
 * 
 * @author 黄松祥
 * 2018年5月7日 下午3:34:56
 */
public class SysUserConst {
	
	public enum Status{
		NORMAL(0, "正常"),
		FORBIDDEN(1, "停用");
		private int code;
		private String value;
		
		Status(int code, String value){
			this.code = code;
			this.value = value;
		}
		public int getCode() {
			return code;
		}
		public String getValue() {
			return value;
		}
		public static Status codeOf(int code){
            for(Status status : values()){
                if(status.getCode() == code){
                    return status;
                }
            }
            return null;
        }
	}
}
